#!/usr/bin/env python

from distutils.core import setup
from distutils.util import get_platform

setup(name='elektra-gen',
      version='${KDB_VERSION}',
      description='Elektra Front End Generator',
      long_description="""Generate Front Ends for static programming
      languages using Cheetah templates.""",
      platforms = get_platform(),
      license='bsd',
      author='Markus Raab',
      author_email='elektra@markus-raab.org',
      url='http://www.libelektra.org/',
      package_dir={
          'support': '${CMAKE_CURRENT_SOURCE_DIR}/support',
           '': '${CMAKE_CURRENT_BINARY_DIR}'
      },
      scripts=['${CMAKE_CURRENT_SOURCE_DIR}/gen'],
      packages=['support'],
      #py_modules = [
      #    'util',
      #    'cpp_util'
      #    ],
      data_files = [
          ('@CMAKE_INSTALL_PREFIX@/@TARGET_TEMPLATE_FOLDER@', [
                 '${CMAKE_CURRENT_SOURCE_DIR}/README.md',
                 '${CMAKE_CURRENT_SOURCE_DIR}/tests/lift.ini',
                 '${CMAKE_CURRENT_SOURCE_DIR}/template/context_static.hpp',
                 '${CMAKE_CURRENT_SOURCE_DIR}/template/genopt.c',
                 '${CMAKE_CURRENT_SOURCE_DIR}/template/genopt.h',
                 '${CMAKE_CURRENT_SOURCE_DIR}/template/template.h',
                 '${CMAKE_CURRENT_SOURCE_DIR}/template/template.hpp',
                 '${CMAKE_CURRENT_SOURCE_DIR}/template/template.html',
                 '${CMAKE_CURRENT_SOURCE_DIR}/template/template.man',
                 '${CMAKE_CURRENT_SOURCE_DIR}/template/nested.hpp',
                 '${CMAKE_CURRENT_SOURCE_DIR}/util/util.c',
                 '${CMAKE_CURRENT_SOURCE_DIR}/util/util.cpp',
                 '${CMAKE_CURRENT_SOURCE_DIR}/tests/visit_context.cpp',
                 '${CMAKE_CURRENT_SOURCE_DIR}/tests/visit.ini',
                ]
          )
      ]
)
